package com.sykj.service.serviceImpl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.sykj.bean.Student;
import com.sykj.mapper.StudentMapper;
import com.sykj.service.StudentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class StudentServiceImpl extends ServiceImpl<StudentMapper, Student> implements StudentService{
    @Autowired(required = false)
    private StudentMapper studentMapper;

    @Override
    public List<Student> index(Student student) {
        return baseMapper.index(student);
    }

    @Override
    public void delete(Student student) {
        baseMapper.delete(student);
    }

    @Override
    public void saves(Student student) {
        baseMapper.saves(student);
    }
}
